﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="{{asset('css/style.css')}}" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="{{asset('js/jquery.js')}}"></script>

<script type="text/javascript">
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	});
	
	$('.title').click(function(){
		var $ul = $(this).next('ul');
		$('dd').find('ul').slideUp();
		if($ul.is(':visible')){
			$(this).next('ul').slideUp();
		}else{
			$(this).next('ul').slideDown();
		}
	});
})	
</script>


</head>

<body style="background:#f0f9fd;">
	<div class="lefttop"><span></span>个人博客</div>
    
    <dl class="leftmenu">
    @if($data)
        @foreach($data['authA'] as $v)
                <dd>
                    @if($v['pid']==0)
                        <div class="title">
                            <span><img src="{{asset('images//leftico01.png')}}" /></span>{{$v['zh_name']}}
                        </div>
                        <ul class="menuson">
                            @foreach($data['authB'] as $vv)
                                @if($vv['pid'] == $v['id'])
                                    <?php
                                    //处理对应的链接
                                        $url = $vv['name_c'].'/'. $vv['name_a'];
                                    ?>
                                    <li><cite></cite><a href="/{{$url}}" target="rightFrame">{{$vv['zh_name']}}</a><i></i></li>
                                @endif
                            @endforeach
                        </ul>
                    @endif


                </dd>
        @endforeach



    @endif

    
    {{--<dd>
    <div class="title">
    <span><img src="{{asset('images//leftico02.png')}}" /></span>其他设置

    </div>
    <ul class="menuson">
        <li><cite></cite><a href="#">编辑内容</a><i></i></li>
        <li><cite></cite><a href="#">发布信息</a><i></i></li>
        <li><cite></cite><a href="#">档案列表显示</a><i></i></li>
        </ul>     
    </dd> 
    
    
    <dd><div class="title"><span><img src="{{asset('images//leftico03.png')}}" /></span>编辑器</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">自定义</a><i></i></li>
        <li><cite></cite><a href="#">常用资料</a><i></i></li>
        <li><cite></cite><a href="#">信息列表</a><i></i></li>
        <li><cite></cite><a href="#">其他</a><i></i></li>
    </ul>    
    </dd>  
    
    
    <dd><div class="title"><span><img src="{{asset('images//leftico04.png')}}" /></span>日期管理</div>
    <ul class="menuson">
        <li><cite></cite><a href="#">自定义</a><i></i></li>
        <li><cite></cite><a href="#">常用资料</a><i></i></li>
        <li><cite></cite><a href="#">信息列表</a><i></i></li>
        <li><cite></cite><a href="#">其他</a><i></i></li>
    </ul>
    
    </dd>   --}}
    
    </dl>
</body>
</html>
